Pod::Spec.new do |s|
  s.name         = 'HybridBridge'
  s.version      = '0.4.5'
  s.summary      = 'hybrid app bridge'
  s.homepage     = 'https://git.oschina.net/wapznw/HybridBridge'
  s.author       = { 'Daojiang' => 'wapznw@qq.com' }
  s.requires_arc = true
  s.source       = { :git => 'https://git.oschina.net/wapznw/HybridBridge.git', :tag => 'v'+s.version.to_s }
  s.ios.deployment_target = '8.0'
  s.source_files = 'HybridBridge/Classes/**/*.{h,m}'
  s.resource     = 'HybridBridge/hybrid.js.txt','HybridBridge/hybridbridgeiconfont.ttf'
  s.framework    = 'UIKit','MapKit','CoreLocation','AudioToolbox','AVFoundation','MessageUI','MediaPlayer'
  s.dependency 'WebViewJavascriptBridge', '~> 4.1.4'
  s.dependency 'AFNetworking', '~> 2.0'
  s.dependency 'MBProgressHUD', '~> 0.5'
  s.dependency 'KSToastView', '~> 0.5.6'
  s.dependency 'MAThemeKit', '~> 1.0'
  s.dependency 'FZEasyFile', '~>0.0.3'
  s.dependency 'YCXMenu', '~> 0.0.3'
  s.dependency 'IconFont', '~> 1.0.2'
  s.dependency 'DTStorage', '~> 0.2.0'
  #s.dependency 'NSString-UrlEncode', '~> 2.0.0'
  s.dependency 'CocoaSecurity', '~> 1.2.4'
  s.dependency 'SSZipArchive', '~> 1.0.1'
  s.dependency 'GCDWebServer', '~> 3.0'

  s.subspec 'Core' do |cs|

  end

  s.subspec 'GeTui' do |sp|
    sp.source_files = 'HybridBridge/GeTui/*.{h,m}'
    sp.dependency 'GTSDK', '~> 1.6.3'
  end

  s.subspec 'Social' do |sp|
    sp.source_files = 'HybridBridge/Social/*.{h,m}'
    sp.dependency 'ShareSDK3', '3.1.5'
    sp.dependency 'ShareSDK3/libraries', '3.1.5'
    sp.dependency 'ShareSDK3/ShareSDKUI', '3.1.5'
    sp.dependency 'ShareSDK3/ShareSDKPlatforms/QQ', '3.1.5'
    sp.dependency 'ShareSDK3/ShareSDKPlatforms/WeChat', '3.1.5'
    #sp.dependency 'ShareSDK3/ShareSDKPlatforms/SinaWeibo', '3.1.5'
    sp.dependency 'ShareSDK3/ShareSDKPlatforms/RenRen', '3.1.5'
    sp.dependency 'ShareSDK3/ShareSDKPlatforms/AliPaySocial', '3.1.5'
    sp.dependency 'ShareSDK3/ShareSDKPlatforms/Kakao', '3.1.5'
  end

  s.subspec 'Alipay' do |sp|
    sp.source_files = 'HybridBridge/Alipay/*.{h,m}'
    sp.dependency 'iOS-AlipaySDK', '~> 3.0.2'
  end

  s.subspec 'VideoCapture' do |sp|
    sp.source_files = 'HybridBridge/VideoCapture/**/*.{h,m}'
    sp.resource     = 'HybridBridge/VideoCapture/**/*.{xib,png}'
  end

  s.subspec 'Upgrade+Splash' do |sp|
    sp.source_files = 'HybridBridge/Upgrade+Splash/*.{h,m}'
  end

  s.subspec 'MAudio' do |sp|
    sp.source_files = 'HybridBridge/MAudio/*.{h,m}'
  end

  s.subspec 'QRCode' do |sp|
    sp.source_files = 'HybridBridge/QRCode/*.{h,m}'
    sp.dependency 'ZBarSDK', '~> 1.3.1'
    sp.dependency 'libqrencode', '~> 3.4.2'
  end

  s.subspec 'AMap3DMap' do |sp|
    sp.dependency 'AMap3DMap', '~> 3.1.0.1'
  end

  s.subspec 'BaiduMTJ' do |sp|
    sp.source_files = 'HybridBridge/BaiduMTJ/*.{h,m}'
    sp.dependency 'BaiduMobStat', '~> 4.5.0'
  end


  # s.subspec 'Agora' do |sp|
  #   sp.source_files = 'HybridBridge/Agora/*.{h,m}'
  #   sp.resource     = 'HybridBridge/Agora/call_ring.mp3','HybridBridge/Agora/images/*.png'
  #   sp.dependency 'AgoraRtcEngine_iOS', '~> 1.11.0'
  #   sp.dependency 'SocketIO-ObjC', '~> 1.3'
  # end

  s.subspec 'IDCard' do |sp|
    sp.source_files = 'HybridBridge/IDCard/*.{h,m}'
    sp.vendored_frameworks = 'HybridBridge/IDCard/Frameworks/AipBase.framework',
    'HybridBridge/IDCard/Frameworks/AipOcrSdk.framework',
    'HybridBridge/IDCard/Frameworks/IdcardQuality.framework'
    sp.framework = 'AipBase', 'AipOcrSdk', 'IdcardQuality'
  end

end
